package com.结构型模式.享元模式;

/**
 * @author chenhs
 * @date 2020/10/22
 */
public class FixationImpl implements  IFixation {
	public FixationImpl(String str){
		this.str=str;
	}
	private String str;
	@Override
	public void operation(Variable variable) {
		//非固定信息
		System.out.println(variable.getStr());
		//固定信息
		System.out.println(this.getStr());
	}
	
	public String getStr() {
		return str;
	}
	
	public void setStr(String str) {
		this.str = str;
	}
}
